<?php

namespace App\Http\Requests\Admin;


class GoodsTypeRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'goodsName' => [
                'required'
            ],
            'pid' => [
                'required'
            ]
        ];
    }

    public function messages()
    {
        return [
            'goodsName.required' => '请输入商品类别名称',
            'pid.required' => '请选择父级ID',
        ];
    }
}
